package com.zhangxx.web.common.model;

public enum UserStatus {

    NOT_FUOND_USER(600010,"用户不存在"),
    USER_STATUS(600011,"用户不可用"),

    NOT_FOUND_SHOP( 600020,"店铺不存在"),
    SHOP_STATUS( 600021,"店铺不可用"),
    ;

    private int code;

    private String message;

    UserStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int value() {
        return code;
    }

    public String message() {
        return message;
    }

    @Override
    public String toString() {
        return Integer.toString(this.code);
    }
}
